home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / lib / gcc-lib / ppc-amigaos / 2.95.1 / sys-include / powerup / ppcinline / socket.h < prev    next >
C/C++ Source or Header  |  2000-03-13  |  9KB  |  204 lines

  1. /* Automatically generated header! Do not edit! */
  2.  
  3. #ifndef _PPCINLINE_SOCKET_H
  4. #define _PPCINLINE_SOCKET_H
  5.  
  6. #ifndef __PPCINLINE_MACROS_H
  7. #include <powerup/ppcinline/macros.h>
  8. #endif /* !__PPCINLINE_MACROS_H */
  9.  
  10. #ifndef SOCKET_BASE_NAME
  11. #define SOCKET_BASE_NAME SocketBase
  12. #endif /* !SOCKET_BASE_NAME */
  13.  
  14. #define CloseSocket(d) \
  15.     LP1(0x78, long, CloseSocket, long, d, d0, \
  16.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  17.  
  18. #define Dup2Socket(fa, fb) \
  19.     LP2(0x108, long, Dup2Socket, long, fa, d0, long, fb, d1, \
  20.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  21.  
  22. #define Errno() \
  23.     LP0(0xa2, long, Errno, \
  24.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  25.  
  26. #define GetSocketEvents(e) \
  27.     LP1(0x12c, long, GetSocketEvents, unsigned long *, e, a0, \
  28.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  29.  
  30. #define Inet_LnaOf(i) \
  31.     LP1(0xba, unsigned long, Inet_LnaOf, long, i, d0, \
  32.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  33.  
  34. #define Inet_MakeAddr(n, h) \
  35.     LP2(0xc6, unsigned long, Inet_MakeAddr, unsigned long, n, d0, unsigned long, h, d1, \
  36.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  37.  
  38. #define Inet_NetOf(i) \
  39.     LP1(0xc0, unsigned long, Inet_NetOf, long, i, d0, \
  40.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  41.  
  42. #define Inet_NtoA(i) \
  43.     LP1(0xae, char *, Inet_NtoA, unsigned long, i, d0, \
  44.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  45.  
  46. #define IoctlSocket(d, r, a) \
  47.     LP3(0x72, long, IoctlSocket, long, d, d0, unsigned long, r, d1, char *, a, a0, \
  48.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  49.  
  50. #define ObtainSocket(i, d, t, p) \
  51.     LP4(0x90, long, ObtainSocket, long, i, d0, long, d, d1, long, t, d2, long, p, d3, \
  52.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  53.  
  54. #define ReleaseCopyOfSocket(f, i) \
  55.     LP2(0x9c, long, ReleaseCopyOfSocket, long, f, d0, long, i, d1, \
  56.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  57.  
  58. #define ReleaseSocket(f, i) \
  59.     LP2(0x96, long, ReleaseSocket, long, f, d0, long, i, d1, \
  60.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  61.  
  62. #define SetErrnoPtr(e, s) \
  63.     LP2(0xa8, long, SetErrnoPtr, void *, e, a0, long, s, d0, \
  64.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  65.  
  66. #define SetSocketSignals(sin, sio, su) \
  67.     LP3NR(0x84, SetSocketSignals, unsigned long, sin, d0, unsigned long, sio, d1, unsigned long, su, d2, \
  68.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  69.  
  70. #define SocketBaseTagList(t) \
  71.     LP1(0x126, long, SocketBaseTagList, struct TagItem *, t, a0, \
  72.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  73.  
  74. #ifndef NO_PPCINLINE_STDARG
  75. #define SocketBaseTags(tags...) \
  76.     ({ULONG _tags[] = { tags }; SocketBaseTagList((struct TagItem *)_tags);})
  77. #endif /* !NO_PPCINLINE_STDARG */
  78.  
  79. #define WaitSelect(n, r, w, e, t, m) \
  80.     LP6(0x7e, long, WaitSelect, long, n, d0, fd_set *, r, a0, fd_set *, w, a1, fd_set *, e, a2, void *, t, a3, unsigned long *, m, d1, \
  81.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  82.  
  83. #define accept(s, a, al) \
  84.     LP3(0x30, long, accept, long, s, d0, struct sockaddr *, a, a0, long *, al, a1, \
  85.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  86.  
  87. #define bind(s, n, nl) \
  88.     LP3(0x24, long, bind, long, s, d0, const struct sockaddr *, n, a0, long, nl, d1, \
  89.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  90.  
  91. #define connect(s, n, nl) \
  92.     LP3(0x36, long, connect, long, s, d0, const struct sockaddr *, n, a0, long, nl, d1, \
  93.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  94.  
  95. #define getdtablesize() \
  96.     LP0(0x8a, long, getdtablesize, \
  97.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  98.  
  99. #define gethostbyaddr(a, l, t) \
  100.     LP3(0xd8, struct hostent *, gethostbyaddr, const unsigned char *, a, a0, long, l, d0, long, t, d1, \
  101.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  102.  
  103. #define gethostbyname(n) \
  104.     LP1(0xd2, struct hostent *, gethostbyname, const unsigned char *, n, a0, \
  105.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  106.  
  107. #define gethostid() \
  108.     LP0(0x120, unsigned long, gethostid, \
  109.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  110.  
  111. #define gethostname(h, s) \
  112.     LP2(0x11a, long, gethostname, char *, h, a0, long, s, d0, \
  113.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  114.  
  115. #define getnetbyaddr(n, t) \
  116.     LP2(0xe4, struct netent *, getnetbyaddr, long, n, d0, long, t, d1, \
  117.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  118.  
  119. #define getnetbyname(n) \
  120.     LP1(0xde, struct netent *, getnetbyname, const unsigned char *, n, a0, \
  121.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  122.  
  123. #define getpeername(s, h, n) \
  124.     LP3(0x6c, long, getpeername, long, s, d0, struct sockaddr *, h, a0, long *, n, a1, \
  125.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  126.  
  127. #define getprotobyname(n) \
  128.     LP1(0xf6, struct protoent *, getprotobyname, const unsigned char *, n, a0, \
  129.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  130.  
  131. #define getprotobynumber(p) \
  132.     LP1(0xfc, struct protoent *, getprotobynumber, long, p, d0, \
  133.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  134.  
  135. #define getservbyname(n, p) \
  136.     LP2(0xea, struct servent *, getservbyname, const unsigned char *, n, a0, const unsigned char *, p, a1, \
  137.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  138.  
  139. #define getservbyport(p, pr) \
  140.     LP2(0xf0, struct servent *, getservbyport, long, p, d0, const unsigned char *, pr, a0, \
  141.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  142.  
  143. #define getsockname(s, h, n) \
  144.     LP3(0x66, long, getsockname, long, s, d0, struct sockaddr *, h, a0, long *, n, a1, \
  145.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  146.  
  147. #define getsockopt(s, l, o, ov, ol) \
  148.     LP5(0x60, long, getsockopt, long, s, d0, long, l, d1, long, o, d2, void *, ov, a0, long *, ol, a1, \
  149.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  150.  
  151. #define inet_addr(c) \
  152.     LP1(0xb4, unsigned long, inet_addr, const unsigned char *, c, a0, \
  153.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  154.  
  155. #define inet_network(c) \
  156.     LP1(0xcc, unsigned long, inet_network, const unsigned char *, c, a0, \
  157.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  158.  
  159. #define listen(s, b) \
  160.     LP2(0x2a, long, listen, long, s, d0, long, b, d1, \
  161.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  162.  
  163. #define recv(s, b, l, f) \
  164.     LP4(0x4e, long, recv, long, s, d0, unsigned char *, b, a0, long, l, d1, long, f, d2, \
  165.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  166.  
  167. #define recvfrom(s, b, l, f, fr, frl) \
  168.     LP6(0x48, long, recvfrom, long, s, d0, unsigned char *, b, a0, long, l, d1, long, f, d2, struct sockaddr *, fr, a1, long *, frl, a2, \
  169.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  170.  
  171. #define recvmsg(s, m, f) \
  172.     LP3(0x114, long, recvmsg, long, s, d0, struct msghdr *, m, a0, long, f, d1, \
  173.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  174.  
  175. #define send(s, m, l, f) \
  176.     LP4(0x42, long, send, long, s, d0, const unsigned char *, m, a0, long, l, d1, long, f, d2, \
  177.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  178.  
  179. #define sendmsg(s, m, f) \
  180.     LP3(0x10e, long, sendmsg, long, s, d0, struct msghdr *, m, a0, long, f, d1, \
  181.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  182.  
  183. #define sendto(s, m, l, f, t, tl) \
  184.     LP6(0x3c, long, sendto, long, s, d0, const unsigned char *, m, a0, long, l, d1, long, f, d2, const struct sockaddr *, t, a1, long, tl, d3, \
  185.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  186.  
  187. #define setsockopt(s, l, o, ov, ol) \
  188.     LP5(0x5a, long, setsockopt, long, s, d0, long, l, d1, long, o, d2, const void *, ov, a0, long, ol, d3, \
  189.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  190.  
  191. #define shutdown(s, h) \
  192.     LP2(0x54, long, shutdown, long, s, d0, long, h, d1, \
  193.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  194.  
  195. #define socket(d, t, p) \
  196.     LP3(0x1e, long, socket, long, d, d0, long, t, d1, long, p, d2, \
  197.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  198.  
  199. #define vsyslog(l, f, a) \
  200.     LP3NR(0x102, vsyslog, unsigned long, l, d0, const char *, f, a0, long *, a, a1, \
  201.     , SOCKET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  202.  
  203. #endif /* !_PPCINLINE_SOCKET_H */
  204.